
<div class="order-list-page" ng-if="pagedata.op == 'main'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的课时</div>
		<div class="fui-header-right"></div>
	</div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active':pagedata.status == 10}" href="javascript:" ng-click="tool.get_list('jy_kexie/mylesson_log/getlist/status=10',true);pagedata.status=10">全部</a>
        <a ng-class="{'external active':pagedata.status == 0}" href="javascript:" ng-click="tool.get_list('jy_kexie/mylesson_log/getlist/status=0',true);pagedata.status=0">已预约</a>
        <a ng-class="{'external active':pagedata.status == 1}" href="javascript:" ng-click="tool.get_list('jy_kexie/mylesson_log/getlist/status=1',true);pagedata.status=1">已上课</a>
		<a ng-class="{'external active':pagedata.status == 2}" href="javascript:" ng-click="tool.get_list('jy_kexie/mylesson_log/getlist/status=2',true);pagedata.status=2">已完成</a>
	</div>
	<div class='fui-content order-list' style="margin-top:4.5rem">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 课时编号: {{item.logsn}}</div>
                    </div>
                    <div ng-show="item.status==0" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已预约</div>
                    <div ng-show="item.status==1" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已上课</div>
					<div ng-show="item.status==2" class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">已完成</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon icon-dianpu"></i> {{item.store.title}}
                            <span class="status noremark" style="font-size:0.60rem">课程：<span style="color:#f60;">{{item.lesson.title}}</span></span>
                        </div>
                    </a>
                    <a href="" class="external" data-nocache="true" ng-click="access_json('jy_kexie/mylesson_log/detail/id='+item.id)">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.lesson.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{item.store.title}}</div>
								<div class="text" style="color:#f60;font-size:0.60rem">上课时间：{{item.lesson.starttime}}</div>
								<div class="text" style="color:#f60;font-size:0.60rem">校区地址：[{{item.lesson.area_title}}] {{item.store.address}}</div>
                            </div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.65rem"><i class="icon icon-shijian" style="color:#f60;font-size:0.60rem"></i> {{item.ontime}}</span>
                    <span class="status noremark">共 <span>{{item.lesson.on_num}}</span> 节课程</span>
                </div>
				<div class="fui-list-group-title lineblock opblock">
					<span class="status noremark">
						<div class="btn btn-sm btn-danger-o order-finish" href="javascript:;" ng-click="access_json('/lesson_pai//lessonid='+item.lesson_id)">查看排课</div>
					</span>
				</div>
        </div>
	</div>
	<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有课时！</p>
	</div>
</div>
<div class="order-list-page" ng-if="pagedata.op == 'detail'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">课时详情</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <!--<div class="title">{{pagedata.user.name || '匿名学生'}}</div>-->
					<div class="title" style="font-size:0.65rem">学生姓名：{{pagedata.order.body.name}}</div>
					<div class="title" style="font-size:0.65rem">家长手机：{{pagedata.member.mobile}}</div>
					
                </div>
                <a class="jump" href="javascript:;">
					
				</a>
            </div>
		</div>
		<div class="weui_cells">
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>课程名称</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.lesson.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>校区</span>
					</div>
					<div class="weui_cell_ft" >{{pagedata.order.store.title}}</div>
			</div>
			<div ng-if="pagedata.order.class.title" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>班级</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.classgroup.title}}({{pagedata.order.class.title}})</div>
			</div>
			<div ng-if="pagedata.order.classworker.name" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>班主任</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.classworker.name}}</div>
			</div>
			<div ng-if="pagedata.order.lessonworker.name" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>任课老师</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.lessonworker.name}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>家长姓名</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.member.nickname || '无'}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>家长电话</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.member.mobile">{{pagedata.member.mobile || '无'}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>约课日期</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.order.day}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>备注</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.time">{{pagedata.order.remark}}</div>
			</div>
		<!--	<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>门店地址</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.address">{{pagedata.basic.address}}</div>
			</div>
			-->
			<div class="weui_cell" ng-repeat="item in pagedata.fileds">
					<div ng-if="item.type != 3" class="weui_cell_bd weui_cell_primary">
						<span>{{item.title}}</span>
					</div>
					<div ng-if="item.type != 3" class="weui_cell_ft" ng-model="pagedata.post.package_price">{{item.data}}</div>
					<div ng-if="item.type == 3" class="weui_cell_bd weui_cell_primary">
						<span>{{item.title}}</span>
					</div>
					 <a class="fui-list-media" ng-if="item.type == 3">
                    <img class="round" src="{{tomedia(item.data) || '../core/resource/images/nopic.jpg'}}" />
                </a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
scope.pagedata.loading = true;
scope.pagedata.status=0	
scope.tool.get_list('jy_kexie/mylesson_log/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_kexie/mylesson_log/getlist/status='+scope.pagedata.status);
}
</script>